package com.jsjvm.client.classparser.jconstants;

import com.jsjvm.client.classparser.JConstantPool;
import com.jsjvm.client.util.DataInputStream;

public class JUTF8Constant implements JConstant {
	public String value;

	public JUTF8Constant(DataInputStream is) {
		int length = is.readUShort();
		byte data[] = new byte[length];
		is.read(data);
		this.value = new String(data);
	}

	@Override
	public JConstant link(JConstantPool cpool) {
		return this;
	}
}
